import QtQuick 2.0

Canvas{
    width: 1000; height: 800
    id: root
    property var poster:"009.jpg";

    onPaint: {
        var ctx = getContext("2d");
        ctx.drawImage(poster, 0, 0);
    }
    Component.onCompleted: {
        loadImage(poster);
    }
    onImageLoaded: requestPaint();
}

